﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             x:Class="SilverlightApplication1.App"
             >
    <Application.Resources>
        <DataTemplate x:Key="SmallPersonTemplate">
            <StackPanel Height="112" Width="128">
                <TextBox Height="30" Margin="0" TextWrapping="Wrap" Text="{Binding Mode=TwoWay, ValidatesOnNotifyDataErrors=True, ValidatesOnExceptions=True, Path=[Name], NotifyOnValidationError=True}"/>
                <TextBox Height="30" Margin="0" TextWrapping="Wrap" Text="{Binding Mode=TwoWay, ValidatesOnNotifyDataErrors=True, ValidatesOnExceptions=True, Path=[Surname], NotifyOnValidationError=True}"/>
            </StackPanel >
        </DataTemplate>
    </Application.Resources>
</Application>
